package com.swf.seed.spring.annotion;

import java.lang.reflect.Method;

import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.util.ReflectionUtils;

public class AnnotationUtilsTest {
	public static void main(String[] args) {
		Test t = AnnotationUtils.findAnnotation(TestType.class, Test.class);
		Method[] methods = TestType.class.getDeclaredMethods();
		for (Method method:methods){
			Test t1 = AnnotationUtils.findAnnotation(method, Test.class);
			ClassType t2 = AnnotationUtils.findAnnotation(method.getDeclaringClass(), ClassType.class);
			System.out.println(t2.value());
		}
		System.out.println("a.do".replace("\\.do", ""));
	}
}
